import apis from './api';   // 引入局部的数据模拟文件
import { setup,mock } from 'mockjs'

setup({
  timeout: '200-2000'
})
const baseUrl = '/api'
const mocks = [
  ...apis
]

mocks.map(e => {
  console.log(e)
  mock(new RegExp(baseUrl+e.url), e.method, e.data)
})